package com.ycl.javacore.exam.limit;

public class Test {
    public static void main(String args[]) throws Exception {
        for (int i = 0; i < 1000; i++) {
            new Thread() {
                @Override
                public void run() {
                    try {
                        System.out.println(Counter.getCounter());
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
            }.start();
        }
    }
}